package com.yunfangdata.service;


import com.yunfangdata.domain.Employee;
import com.yunfangdata.query.QueryObject;
import com.yunfangdata.util.PageResult;

import java.util.List;

public interface IEmployeeService {


    void save(Employee entity);

    void delete(Long id);

    void update(Employee entity);

    Employee get(Long id);

    List<Employee> list();

    PageResult query(QueryObject qo);

    List<Employee> queryEmployeeByRoleManager();

    void changeState(Long id);

    Employee queryCurrentUserByEmpUsernameAndPassword(String un, String psw);

    Employee queryCurrentUserByEmpUsername(String uname);

    void changePassword(String username, String password,String newPassword);

    Employee queryPortraitByUsername(String username);
}
